package com.sdi.business;

import java.util.List;

import com.sdi.business.exception.EntityAlreadyExistsException;
import com.sdi.business.exception.EntityNotFoundException;
import com.sdi.model.Categoria;


public interface CatService {
	
	List<Categoria> getCategorias();
	Categoria findByName(String name) throws EntityNotFoundException;
	void saveCategoria(Categoria cat) throws EntityAlreadyExistsException;
	void updateCategoria(Categoria cat) throws EntityNotFoundException;
	void deleteCategoria(String name) throws EntityNotFoundException;

}
